package cn.com.ejiakanghu.web;

import cn.com.ejiakanghu.core.vo.BaseResult;
import cn.com.ejiakanghu.form.SoftChainLockForm;
import cn.com.ejiakanghu.service.SoftChainLockManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("softChainLock")
public class SoftChainLockController {
    @Autowired
    private SoftChainLockManager softChainLockManager;

    @RequestMapping("lock")
    public BaseResult lock(@RequestBody SoftChainLockForm softChainLockForm) {
        return softChainLockManager.lock(softChainLockForm);
    }
}
